@charset "utf-8";

.home-container {
  width: 100%;
  .swiper-container {
    .swiper-slide {
      width: 100%;
    }
    .swiper-button-prev,
    .swiper-button-next {
      &:after {
        content: "";
      }
      i {
        transform: scale(3);
        color: $mainColor;
      }
    }
    .swiper-pagination-bullet {
      background: #ffffff;
    }
    .swiper-pagination-bullet-active {
      background: $mainColor;
    }
  }
  .part-title {
    position: relative;
    h3 {
      text-align: center;
      font-family: Open Sans;
      font-size: 52px;
      font-weight: bold;
      color: #1a1a1a;
      em {
        color: $mainColor;
        font-style: normal;
        font-family: Open Sans;
      }
    }
    p {
      text-align: center;
      color: #202020;
      font-weight: bold;
      line-height: 24px;
    }
    &:after {
      color: #dedede;
      font-weight: bold;
      font-size: 210px;
      font-family: Open Sans;
      position: absolute;
      top: -120%;
      left: 50%;
      transform: translateX(-50%);
      z-index: -99;
    }
  }
  .welcome-info {
    margin-top: 100px;
    .part-title {
      &:after {
        content: "01";
      }
    }
    .part-item {
      margin: 80px 260px 0 260px;
      .swiper-wrapper {
        .swiper-slide {
          display: flex;
          .part-list-item {
            position: relative;
            border: 1px solid #eaeaea;
            flex: 1;
            margin-right: 50px;
            transition: all 0.5s;
            &:nth-last-child(1) {
              margin-right: 0;
            }
            .item-img {
              display: flex;
              justify-content: center;
              align-items: center;
              position: relative;
              width: 100%;
              height: auto;
              background: $mainColor;
              img {
                position: absolute;
                transition: all 0.5s ease;
                width: 100%;
                height: 100%;
                display: block;
              }
              a {
                transition: all 0.5s ease;
                width: 100%;
                height: 100%;
                justify-content: center;
                align-items: center;
                position: absolute;
                top: 0;
                left: 0;
                display: flex;
                font-size: 24px;
                transform: translate3d(0, 20px, 0);
                opacity: 0;
                color: #ffffff;
                z-index: 666;
              }
              &:after {
                content: "";
                display: block;
                padding-top: 100%;
              }
            }
            p {
              color: #2b2b2b;
              font-family: Open Sans;
            }
            .item-title {
              margin: 20px 10px 0;
              font-size: 18px;
              line-height: 24px;
              padding-right: 5px;
            }
            .item-content {
              margin: 10px;
              font-size: 14px;
              line-height: 18px;
              color: #444444;
              @include linef(3);
            }
            &:hover {
              transform: translateY(-2px);
              box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
              .item-title {
                color: $mainColor;
              }
              .item-img img {
                opacity: 0.4;
              }
              .item-img a {
                transform: translate3d(0, 0, 0);
                opacity: 1;
              }
            }
          }
        }
      }
      .swiper-part-pagination {
        margin: 50px 0;
        .swiper-pagination-bullet {
          background: #000000;
        }
        .swiper-pagination-bullet-active {
          background: $mainColor;
        }
        display: flex;
        justify-content: center;
      }
    }
  }
  .about-info {
    overflow: hidden;
    width: 100%;
    display: flex;
    div {
      width: 50%;
    }
    .about-img {
      img {
        width: 100%;
        display: block;
      }
    }
    .about-content {
      padding: 20px 0;
      background: $mainColor;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      .content-title {
        padding-left: 80px;
        font-size: 40px;
        font-weight: bold;
        color: #ffffff;
      }
      article {
        padding-left: 80px;
        padding-right: 200px;
        p {
          font-size: 22px;
          color: #ffffff;
          line-height: 36px;
          font-family: open Sans;
          @include linef(7);
        }
      }
      .about-btn {
        width: 200px;
        height: 60px;
        border: 2px solid #ffffff;
        font-size: 22px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: Open Sans;
        margin-left: 80px;
        transition: ease all 0.5s;
        &:hover {
          background: #ffffff;
          border: 2px solid $mainColor;
          cursor: pointer;
          & a {
            color: $mainColor;
          }
        }
        a {
          color: #ffffff;
        }
      }
    }
  }
  .hot-product {
    margin-top: 130px;
    .part-title {
      &:after {
        content: "03";
      }
    }
    ul {
      margin: 80px 260px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      li {
        width: 30%;
        height: 30%;
        margin-bottom: 50px;
        .pro-img {
          // min-height: 114px;
          width: 100%;
          height: 100%;
          overflow: hidden;
          display: flex;
          justify-content: center;
          align-items: center;
          border: 1px solid #eeeeee;
          img {
            display: block;
            width: 100%;
            height: 100%;
            border: none;
            transition: all 0.5s;
          }
          &:after {
            display: block;
            content: "";
            padding-top: 100%;
          }
        }
        .pro-name {
          color: #2b2b2b;
          font-size: 22px;
          text-align: center;
          line-height: 70px;
          @include linef(1);
        }
        .pro-btn {
          width: 120px;
          height: 33px;
          margin: 0 auto;
          box-sizing: content-box;
          display: flex;
          justify-content: center;
          align-items: center;
          border: 1px solid #4e4d4d;
          border-radius: 16.5px;
          transition: all 0.5s;
          a {
            color: #2b2b2b;
            font-weight: bold;
          }
        }
        &:hover {
          .pro-img img {
            transform: scale(1.1);
          }
          .pro-name {
            color: $mainColor;
          }
          .pro-btn {
            border: 1px solid #ffffff;
            background: $mainColor;
            a {
              color: #ffffff;
            }
          }
        }
      }
    }
  }
  .lastest-news {
    width: 100%;
    ul {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      li {
        width: 50%;
        a object {
          display: flex;
        }
        div {
          flex: 1;
        }
        .news-img {
          img {
            width: 100%;
            display: block;
          }
        }
        .news-content {
          position: relative;
          background: #f6f6f6;
          display: flex;
          flex-direction: column;
          justify-content: space-evenly;
          .news-title {
            margin: 0 80px;
            color: #2b2b2b; 
            font-size: 22px;
            font-family: Open Sans;
            @include linef(2);
          }
          .news-date {
            margin: 0 80px;
            color: #666666;
            font-weight: bold;
          }
          article {
            margin: 0 80px;
            color: #444444;
            line-height: 24px;
            @include linef(3);
          }
          .more-link {
            margin: 0 80px;
            color: #2b2b2b;
            font-weight: bold;
            line-height: 24px;
            font-size: 18px;
            i {
              color: #2b2b2b;
              position: relative;
              top: 1px;
              transform: scale(1.7);
            }
          }
          &::before {
            content: "";
            position: absolute;
            bottom: 0;
            transition: opacity 0.7s ease 0s, transform 0.7s ease 0s;
            width: 94%;
            height: 92%;
            top: 4%;
            left: 3%;
            opacity: 0;
            border-top: 2px solid $mainColor;
            border-bottom: 2px solid $mainColor;
            transform: scale(0, 1);
            -webkit-transform: scale(0, 1);
            box-sizing: border-box;
          }
          &::after {
            transition: opacity 0.5s ease 0s, transform 0.5s ease 0s;
            content: "";
            border-left: 2px solid $mainColor;
            border-right: 2px solid $mainColor;
            transform: scale(1, 0);
            -webkit-transform: scale(1, 0);
            opacity: 0;
            position: absolute;
            width: 94%;
            height: 92%;
            top: 4%;
            left: 3%;
            box-sizing: border-box;
          }
        }
        &:hover {
          & .news-content .news-title a {
            color: $mainColor;
          }
          & .news-content .more-link a,
          & .news-content .more-link i {
            color: $mainColor;
          }
          .news-content::after, .news-content::before {
            opacity: 1;
            transform: scale(1);
          }
        }
        &:nth-child(3) a object {
          flex-direction: row-reverse;
        }
        &:nth-child(4) a object {
          flex-direction: row-reverse;
        }
      }
    }
  }
  .partners {
    margin: 140px 260px 150px;
    .part-title {
      &:after {
        content: "05";
      }
    }
    ul {
      width: 100%;
      margin-top: 130px;
      display: flex;
      flex-wrap: wrap;
      li {
        max-width: 16%;
        min-width: 16%;
        height: 0;
        padding-bottom: 13%;
        flex: 1;
        border-top: 1px solid #eeeeee;
        border-left: 1px solid #eeeeee;
        transition: all 0.5s;
        img {
          transition: all 0.3s ease;
        }
        &:nth-of-type(6n) {
          border-right: 1px solid #eeeeee;
        }
        &:nth-of-type(n + 7) {
          border-bottom: 1px solid #eeeeee;
          &:hover {
            border-bottom: 1px solid $mainColor;
          }
        }
        &:hover {
          border-top: 1px solid $mainColor;
          border-left: 1px solid $mainColor;
          img {
            transform: scale(1.1);
          }
        }
        &:hover + li {
          border-left: 1px solid $mainColor;
        }
        &:hover + li + li + li + li + li + li {
          border-top: 1px solid $mainColor;
        }
        &:nth-of-type(6n):hover {
          border-right: 1px solid $mainColor;
        }
      }
    }
  }
}
